package com.hgkj.cloud.base.service;

import com.hgkj.cloud.base.common.PageInfo;
import com.hgkj.cloud.base.domain.TenantUsers;

import java.util.List;
import java.util.Map;

public interface TenantUsersService {

    int deleteByPrimaryKey(Long id);

    int insert(TenantUsers record);

    int insertSelective(TenantUsers record);

    TenantUsers selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TenantUsers record);

    int updateByPrimaryKey(TenantUsers record);

    /* 获取用户信息 */
    TenantUsers getUserInfo(Map<String, Object> map);

    /* 查询用户列表 */
    List<TenantUsers> listUsers(PageInfo pi, Map<String, Object> map);

    /* 查询用户列表总数 */
    Long listUsersCount(Map<String, Object> map);

    int updateUserType(Map<String, Object> map);

    /* 问卷任务用户列表 */
    List<TenantUsers> listQnTaskUsers(PageInfo pi, Map<String, Object> map);

    /* 问卷任务用户列表总数 */
    long listQnTaskUsersCount(Map<String, Object> map);

    /* 测评任务用户列表 */
    List<TenantUsers> listTableTaskUsers(PageInfo pi, Map<String, Object> map);

    /* 测评任务用户列表总数 */
    long listTableTaskUsersCount(Map<String, Object> map);

    /*获取全部用户信息*/
    List<Long> getAllUserInfo();
    TenantUsers getUserById(String userId);
    int deleteUserCreateDate();

    Map getUserIntegral(String userUuid);

}
